import request from '../utils'
/* 
    注册
    /api/user/dofinishregister
*/
export let reg = (tel:string, password:string) => {
    return request({
        url: '/api/user/dofinishregister',
        method: "POST",
        data: {
            tel, password
        }
    })
}

/* 
    验证手机是否注册
    /api/user/docheckphone
*/
export let regtel = (tel:string) => {
    return request({
        url: '/api/user/docheckphone',
        method: "POST",
        data: {
            tel
        }
    })
}

/* 
    
    /api/user/dosendmsgcode
*/
export let dosendmsgcode = (tel:string) => {
    return request({
        url: '/api/user/dosendmsgcode',
        method: "POST",
        data: {
            tel
        }
    })
}


export let docheckcode = (tel:string,telcode:string) => {
    return request({
        url: '/api/user/docheckcode',
        method: "POST",
        data: {
            tel,telcode
        }
    })
}